﻿namespace Leetcode.N0453;
public class Solution
{
    public int MinMoves(int[] nums)
    {
        var min = nums.Min();
        return nums.Sum(_ => _ - min);
    }
}